//
//  YNSPassWordView.m
//  HNBaseProject
//
//  Created by xujie on 2024/6/23.
//

#import "YNSPassWordView.h"

@implementation YNSPassWordView

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        [self createUI];
    }
    return self;
}

- (void)createUI {
    
    self.passField = [[UITextField alloc] init];
    self.passField.textColor = [UIColor colorWithHexString:@"#11182F"];
    self.passField.font = PFRFont(17);
    [self addSubview:self.passField];
    [self.passField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
    [self.passField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(15);
        make.bottom.offset(-6);
        make.height.mas_equalTo(24);
        make.right.offset(-60);
    }];
    
    self.line = [[UIView alloc] init];
    self.line.backgroundColor = [UIColor colorWithHexString:@"#EEEEEE"];
    [self addSubview:self.line];
    [self.line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(15);
        make.bottom.offset(0);
        make.right.offset(-15);
        make.height.mas_equalTo(0.5);
    }];
    
    self.eyeIcon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_biy"]];
    [self addSubview:self.eyeIcon];
    [self.eyeIcon mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.passField);
        make.right.offset(-30);
        make.width.mas_equalTo(18);
        make.height.mas_equalTo(8.25);
    }];
}

- (void)textFieldDidChange:(UITextField *)textField {
    
    
}

@end
